package com.example.flinktest.source;

import java.sql.Timestamp;

/**
 * 无参数，有参数构造函数
 * 变量都是公有的
 */
public class Event {
    public String user;
    public String url;
    public Long timestamp;

    public Event() {

    }

    public Event(String user, String url, Long timestamp) {
        this.user = user;
        this.url = url;
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return String.format("Event{ user- %s,url- %s,timestamp=%s}", user, url, new Timestamp(timestamp));
    }
}
